home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / CIncludes / String.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-17  |  1.7 KB  |  86 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3.     String.h
  4.     String handling
  5.     
  6.     Copyright Apple Computer,Inc.  1987-1990
  7.     All rights reserved
  8.  
  9. ************************************************************/
  10.  
  11.  
  12. #ifndef __STRING__
  13. #define __STRING__
  14.  
  15. #ifndef __size_t__
  16. #define __size_t__
  17. typedef unsigned int size_t;
  18. #endif
  19.  
  20. #ifndef NULL
  21. #define NULL 0
  22. #endif
  23.  
  24. /*
  25.  *    Copying functions
  26.  */
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32. void *memcpy (void *s1, const void *s2, size_t n);
  33. void *memmove (void *s1, const void *s2, size_t n);
  34. char *strcpy (char *s1, const char *s2);
  35. char *strncpy (char *s1, const char *s2, size_t n);
  36.  
  37. #ifndef __STDC__
  38. void *memccpy(void *s1, const void *s2, int c, size_t n);
  39. #endif
  40.  
  41. /*
  42.  *    Concatenation functions
  43.  */
  44.  
  45. char *strcat (char *s1, const char *s2);
  46. char *strncat (char *s1, const char *s2, size_t n);
  47.  
  48. /*
  49.  *    Comparison functions
  50.  */
  51.  
  52. int memcmp (const void *s1, const void *s2, size_t n);
  53. int strcmp (const char *s1, const char *s2);
  54. int strcoll (const char *s1, const char *s2);
  55. int strncmp (const char *s1, const char *s2, size_t n);
  56. size_t strxfrm (char *s1, const char *s2, size_t n);
  57.  
  58.  
  59. /*
  60.  *    Search functions
  61.  */
  62.  
  63. void *memchr (const void *s, int c, size_t n);
  64. char *strchr (const char *s, int c);
  65. size_t strcspn (const char *s1, const char *s2);
  66. char * strpbrk (const char *s1, const char *s2);
  67. char *strrchr (const char *s, int c);
  68. size_t strspn (const char *s1, const char *s2);
  69. char *strstr (const char *s1, const char *s2);
  70. char *strtok (char *s1, const char *s2);
  71.  
  72.  
  73. /*
  74.  *    Miscellaneous functions
  75.  */
  76.  
  77. void *memset (void *s, int c, size_t n);
  78. char *strerror (int errnum);
  79. size_t strlen (const char *s);
  80.  
  81. #ifdef __cplusplus
  82. }
  83. #endif
  84.  
  85. #endif
  86.